package com.zzptc.sky.translate.Fragment;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.zzptc.sky.translate.LoginActivity;
import com.zzptc.sky.translate.R;
import com.zzptc.sky.translate.SettingActivity;

/**
 * Created by Administrator on 2017/10/20.
 */

public class MyFragment extends Fragment {
    TextView textView_one,textView_two;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view=View.inflate(getActivity(), R.layout.activity_my,null);

        textView_one= (TextView) view.findViewById(R.id.TV_button_login);
        textView_one.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(),LoginActivity.class);
                startActivity(intent);
            }
        });
        textView_two= (TextView) view.findViewById(R.id.TV_button_setting);
        textView_two.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(),SettingActivity.class);
                startActivity(intent);
            }
        });
        return view;
    }
}